package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class StatuResult implements Serializable, IJsonParser{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String desc;
	private int error;
	private int result;
	
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getError() {
		return error;
	}

	public void setError(int error) {
		this.error = error;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, StatuResult.class);
		}
		return null;
	}
	
}
